<script>
  import vConsole from 'vconsole'
  
  const getQueryVariable=(variable)=>{
     let query = window.location.search.substring(1);
     let vars = query.split("&");
     for (let i=0;i<vars.length;i++) {
       let pair = vars[i].split("=");
       if(pair[0] == variable){return pair[1].replace('/','');}
     }
     return '';
  }
  
	export default {
		onLaunch: function() {
      if(getQueryVariable('debug')){
        new vConsole();
      }
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
